<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" 
xmlns:c="http://java.sun.com/jsp/jstl/core"
version="2.0">
	<jsp:directive.page contentType="text/html; charset=UTF-8" 
		pageEncoding="UTF-8" session="false"/>
	<jsp:output doctype-root-element="html"
		doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
		doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
		omit-xml-declaration="true" />
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <LINK href="../css/FreeMaind.css" rel="stylesheet" type="text/css" />
	<title>FreeMaind Login</title>
</head>

<c:choose>
	<c:when test="${empty posts}">
		NO POST FOUND.
	</c:when>
	<c:otherwise>
		<c:forEach items="${posts}" var="post">
			<p><u>${post.title}</u></p>
			<p>images/${post.file}</p>
			<p>${post.category.name}</p>
			<p>${post.clef.name}</p>
			<p>Created by ${post.user.name}</p>
			
			<hr/>
		</c:forEach>
	</c:otherwise>
</c:choose>

</html>
</jsp:root>